import Vue from 'vue'

export default {
  searchConstantCategoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectconstantcategory,config).then(r=>{
      callback(r.data);
    });
  },
  delConstantCategoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delconstantcategory,config).then(r=>{
      callback(r.data);
    });
  },
  delConstantCategoryAllService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.delconstantcategoryall,config).then(r=>{
      callback(r.data);
    });
  },
  addConstantCategoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.addconstantcategory,config).then(r=>{
      callback(r.data);
    });
  },
  editConstantCategoryService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.editconstantcategory,config).then(r=>{
      callback(r.data);
    });
  },
}